package cn.canxin.core.dao.teacher;

import cn.canxin.core.bean.Teacher.TeacherPicture;
import cn.canxin.core.dao.SimpleInsertLangDriver;
import cn.canxin.core.dao.SimpleSelectLangDriver;
import cn.canxin.core.dao.SimpleUpdateLangDriver;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author chencan
 *
 */
public interface TeacherPictureDao {

	@Lang(SimpleUpdateLangDriver.class)
	@Update("UPDATE canxin_teacher_picture (#{teacherPicture}) WHERE id = #{id}")
	public void updateTeacherPicture(TeacherPicture teacherPicture);

	@Select("SELECT * FROM canxin_teacher_picture (#{teacherPicture})")
	@Lang(SimpleSelectLangDriver.class)
	public List<TeacherPicture> getTeacherPicture(TeacherPicture teacherPicture);

	@Select("insert into canxin_teacher_picture  (#{teacherPicture})")
	@Lang(SimpleInsertLangDriver.class)
	public void addTeacherPicture(TeacherPicture teacherPicture);
}
